# import xadmin
#
# from orders import models
#
#
# class OrderAdmin(object):
#     model_icon = 'fa fa-gift'
#     list_display = ['to_examine', 'to_handle',
#                     'private_warehouse', 'the_third_warehouse',
#                     'have_goods', 'no_goods',
#                     'deliver_goods_failed', 'deliver_goods_success',
#                     'refused', 'shelve']
#     # search_fields = ['store', 'staff', ]
#     # list_editable = ['day_orders', 'total_flow']
#
#
# class OrderInfoAdmin(object):
#     model_icon = 'fa fa-gift'
#     list_display = ['id','goods_info', 'total_amount',
#                     'buyer', 'order_id',
#                     'get_order_time', 'logistics_method',
#                     'tracking_number', 'freight',
#                     'status',]
#     # search_fields = ['store', 'staff', ]
#     # list_editable = ['day_orders', 'total_flow']
#
#
# class OrderGoodsAdmin(object):
#     model_icon = 'fa fa-gift'
#     list_display = ['order_id', 'seller',
#                     'order_source', 'addressee',
#                     'city', 'province',
#                     'country', 'postal_code',
#                     'pay_status', 'price']
#     # search_fields = ['store', 'staff', ]
#     # list_editable = ['day_orders', 'total_flow']
#
#
# xadmin.site.register(models.OrderCount, OrderAdmin)
# xadmin.site.register(models.OrderInfo, OrderInfoAdmin)
# xadmin.site.register(models.OrderGoods, OrderGoodsAdmin)